package com.goldcn.goods.vo;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2016/11/24.
 */
public class GoodsIndexInfoVo {

    private long goodsID;
    private String goodsName;
    private String goodsUrl;
    private BigDecimal price;
    private BigDecimal vipmPrice;
    private BigDecimal viphPrice;
    private Integer salas;
    private String sku;
    private String classifyName;
    private String subClassifyName;
    private String supplierName;
    private Long addTime;
    private String label;
    private String companyID;
    private Integer priceType;

    public long getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(long goodsID) {
        this.goodsID = goodsID;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsUrl() {
        return goodsUrl;
    }

    public void setGoodsUrl(String goodsUrl) {
        this.goodsUrl = goodsUrl;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getSalas() {
        return salas;
    }

    public void setSalas(Integer salas) {
        this.salas = salas;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getSubClassifyName() {
        return subClassifyName;
    }

    public void setSubClassifyName(String subClassifyName) {
        this.subClassifyName = subClassifyName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GoodsIndexInfoVo that = (GoodsIndexInfoVo) o;

        if (goodsID != that.goodsID) return false;
        if (goodsName != null ? !goodsName.equals(that.goodsName) : that.goodsName != null) return false;
        if (goodsUrl != null ? !goodsUrl.equals(that.goodsUrl) : that.goodsUrl != null) return false;
        if (price != null ? !price.equals(that.price) : that.price != null) return false;
        if (vipmPrice != null ? !vipmPrice.equals(that.vipmPrice) : that.vipmPrice != null) return false;
        if (viphPrice != null ? !viphPrice.equals(that.viphPrice) : that.viphPrice != null) return false;
        if (salas != null ? !salas.equals(that.salas) : that.salas != null) return false;
        if (sku != null ? !sku.equals(that.sku) : that.sku != null) return false;
        if (classifyName != null ? !classifyName.equals(that.classifyName) : that.classifyName != null) return false;
        if (subClassifyName != null ? !subClassifyName.equals(that.subClassifyName) : that.subClassifyName != null)
            return false;
        if (supplierName != null ? !supplierName.equals(that.supplierName) : that.supplierName != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        return !(label != null ? !label.equals(that.label) : that.label != null);

    }

    @Override
    public int hashCode() {
        int result = (int) (goodsID ^ (goodsID >>> 32));
        result = 31 * result + (goodsName != null ? goodsName.hashCode() : 0);
        result = 31 * result + (goodsUrl != null ? goodsUrl.hashCode() : 0);
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (vipmPrice != null ? vipmPrice.hashCode() : 0);
        result = 31 * result + (viphPrice != null ? viphPrice.hashCode() : 0);
        result = 31 * result + (salas != null ? salas.hashCode() : 0);
        result = 31 * result + (sku != null ? sku.hashCode() : 0);
        result = 31 * result + (classifyName != null ? classifyName.hashCode() : 0);
        result = 31 * result + (subClassifyName != null ? subClassifyName.hashCode() : 0);
        result = 31 * result + (supplierName != null ? supplierName.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (label != null ? label.hashCode() : 0);
        return result;
    }

    public BigDecimal getVipmPrice() {
        return vipmPrice;
    }

    public void setVipmPrice(BigDecimal vipmPrice) {
        this.vipmPrice = vipmPrice;
    }

    public BigDecimal getViphPrice() {
        return viphPrice;
    }

    public void setViphPrice(BigDecimal viphPrice) {
        this.viphPrice = viphPrice;
    }

    public String getCompanyID() {
        return companyID;
    }

    public void setCompanyID(String companyID) {
        this.companyID = companyID;
    }

    public Integer getPriceType() {
        return priceType;
    }

    public void setPriceType(Integer priceType) {
        this.priceType = priceType;
    }


    @Override
    public String toString() {
        return "GoodsIndexInfoVo{" +
                "goodsID=" + goodsID +
                ", goodsName='" + goodsName + '\'' +
                ", goodsUrl='" + goodsUrl + '\'' +
                ", price=" + price +
                ", vipmPrice=" + vipmPrice +
                ", viphPrice=" + viphPrice +
                ", salas=" + salas +
                ", sku='" + sku + '\'' +
                ", classifyName='" + classifyName + '\'' +
                ", subClassifyName='" + subClassifyName + '\'' +
                ", supplierName='" + supplierName + '\'' +
                ", addTime=" + addTime +
                ", label='" + label + '\'' +
                ", companyID='" + companyID + '\'' +
                ", priceType=" + priceType +
                '}';
    }
}
